/**
 * @file node
 * @author: vscode
 * @date: 2018-10-23 22:27:59
 * @last Modified by: vscode
 * @last Modified time: 2018-10-23 23:53:19
 */

'use strict';

const vueConfig = require('../../vue.config');
const port = vueConfig.devServer.port;
const baseUrlDev = 'http://st01-bda-jenkins04.st01.baidu.com:8082'; // 测试机地址
// const baseUrlDev = 'http://10.94.100.40:8082'; // 开发机地址
const baseUrlPro = 'http://njjs-sys-replace7022.njjs.baidu.com:8082';
const ssoDEV = 'https://itebeta.baidu.com';
const ssoPRO = 'https://uuap.baidu.com';



module.exports = {
    port: process.env.NODE_ENV === 'development' ? port + 1 : port,
    baseURL: process.env.APP_ENV === 'development' ? baseUrlDev : baseUrlPro,
    uuapUrl: process.env.APP_ENV === 'development' ? ssoDEV : ssoPRO,
    appKey: 'uuapclient-6-MfZf5bhiyptyTFcZbhrm',
    ttl: 86400000 * 7 // (以毫秒为单位）  // 86400000 = 一天
};
